const schemas = {
  "saveFlowchart": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getFlowchartData": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "inputs": {
            "type": "array",
            "description": "输入参数列表",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "参数名称"
                },
                "datatype": {
                  "type": "string",
                  "description": "数据类型，可取值：\ninteger – 整型\nfloat – 浮点型\nstring – 字符串"
                },
                "comment": {
                  "type": "string",
                  "description": "参数说明"
                }
              },
              "required": [
                "name",
                "datatype"
              ]
            }
          },
          "globalVars": {
            "description": "全局变量列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "变量名称"
                },
                "datatype": {
                  "type": "string",
                  "description": "变量类型，可取值：\ninteger – 整型\nfloat – 浮点型\nstring – 字符串"
                },
                "default": {
                  "type": "string",
                  "description": "初始值"
                },
                "comment": {
                  "type": "string",
                  "description": "变量说明"
                }
              },
              "required": [
                "name",
                "datatype"
              ]
            }
          },
          "keywords": {
            "type": "string",
            "description": "keyword列表，取自rf的keyword概念"
          }
        },
        "required": [
          "optResult",
          "keywords"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
